/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Race Pacific Island Melanesian</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S15808 (C-0-T14914-S15787-S15808-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getRacePacificIslandMelanesian()
 * @model extendedMetaData="name='RacePacificIslandMelanesian'"
 * @generated
 */
public enum RacePacificIslandMelanesian implements Enumerator {
	/**
	 * The '<em><b>21006</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21006_VALUE
	 * @generated
	 * @ordered
	 */
	_21006(0, "_21006", "2100-6"),

	/**
	 * The '<em><b>21014</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21014_VALUE
	 * @generated
	 * @ordered
	 */
	_21014(1, "_21014", "2101-4"),

	/**
	 * The '<em><b>21048</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21048_VALUE
	 * @generated
	 * @ordered
	 */
	_21048(2, "_21048", "2104-8"),

	/**
	 * The '<em><b>21022</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21022_VALUE
	 * @generated
	 * @ordered
	 */
	_21022(3, "_21022", "2102-2"),

	/**
	 * The '<em><b>21030</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_21030_VALUE
	 * @generated
	 * @ordered
	 */
	_21030(4, "_21030", "2103-0");

	/**
	 * The '<em><b>21006</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21006</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21006
	 * @model literal="2100-6"
	 * @generated
	 * @ordered
	 */
	public static final int _21006_VALUE = 0;

	/**
	 * The '<em><b>21014</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21014</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21014
	 * @model literal="2101-4"
	 * @generated
	 * @ordered
	 */
	public static final int _21014_VALUE = 1;

	/**
	 * The '<em><b>21048</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21048</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21048
	 * @model literal="2104-8"
	 * @generated
	 * @ordered
	 */
	public static final int _21048_VALUE = 2;

	/**
	 * The '<em><b>21022</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21022</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21022
	 * @model literal="2102-2"
	 * @generated
	 * @ordered
	 */
	public static final int _21022_VALUE = 3;

	/**
	 * The '<em><b>21030</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>21030</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_21030
	 * @model literal="2103-0"
	 * @generated
	 * @ordered
	 */
	public static final int _21030_VALUE = 4;

	/**
	 * An array of all the '<em><b>Race Pacific Island Melanesian</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RacePacificIslandMelanesian[] VALUES_ARRAY =
		new RacePacificIslandMelanesian[] {
			_21006,
			_21014,
			_21048,
			_21022,
			_21030,
		};

	/**
	 * A public read-only list of all the '<em><b>Race Pacific Island Melanesian</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RacePacificIslandMelanesian> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Race Pacific Island Melanesian</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RacePacificIslandMelanesian get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RacePacificIslandMelanesian result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race Pacific Island Melanesian</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RacePacificIslandMelanesian getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RacePacificIslandMelanesian result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race Pacific Island Melanesian</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RacePacificIslandMelanesian get(int value) {
		switch (value) {
			case _21006_VALUE: return _21006;
			case _21014_VALUE: return _21014;
			case _21048_VALUE: return _21048;
			case _21022_VALUE: return _21022;
			case _21030_VALUE: return _21030;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RacePacificIslandMelanesian(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RacePacificIslandMelanesian
